home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Astronomy / Moon / Moon.app / Moon.nib (.txt) < prev    next >
NeXT TypedStream Data  |  1993-01-19  |  14KB  |  292 lines

  1. typedstream
  2. StreamTable
  3.     HashTable
  4. Object
  5. [20c]
  6. typedstream
  7. [1002c]
  8. typedstream
  9.     HashTable
  10. Object
  11. MoonView
  12. HeaderClass
  13. %%%%i@@
  14. /usr/include/stddef.h
  15. viewnib
  16. hugeWindow
  17. hugeMoonView
  18. image
  19. HugeMoonView
  20. /usr/include/sys/message.h
  21. MoonIconView
  22. Controller
  23. genericobject_nib
  24. pauseButton
  25.     nowButton
  26. travelText
  27. moonView
  28. iconView
  29. statForm
  30. stringTable
  31. pause:
  32. returnToNow:
  33. appDidInit:
  34. appWillTerminate:
  35. appDidHide:
  36. timeTravel:
  37. FirstResponder
  38. firstnib
  39. checkSpelling:
  40. alignSelCenter:
  41.     unscript:
  42. pasteFont:
  43. runPageLayout:
  44. superscript:
  45. copyRuler:
  46.     copyFont:
  47. selectAll:
  48. pasteRuler:
  49. toggleRuler:
  50. showGuessPanel:
  51. alignSelLeft:
  52. paste:
  53. performClose:
  54. arrangeInFront:
  55. subscript:
  56. copy:
  57. alignSelRight:
  58. delete:
  59. orderFrontColorPanel:
  60. underline:
  61. performMiniaturize:
  62. [12783c]
  63. typedstream
  64.     HashTable
  65. Object
  66. NibData
  67. @@@@s
  68. Storage
  69. {*@@}
  70.     [53{*@@}]
  71. File's Owner
  72. CustomObject
  73. Application
  74. MainMenu
  75. MenuTemplate
  76. *@*@ccc
  77. Matrix
  78. Control
  79.     Responder
  80. @:@iiii
  81. MenuCell
  82. ButtonCell
  83. ActionCell
  84.     Helvetica
  85. Info Panel...
  86. Help...
  87. ff@@#::s
  88. submenuAction:
  89. Bitmap
  90.     menuArrow
  91. Paste
  92. Select All
  93. MoonWindow
  94. WindowTemplate
  95. iiii***@s@
  96. Phase of the Moon
  97. Window
  98. [11@]
  99. CustomView
  100. MoonView
  101. [16@]
  102. FormCell
  103. Julian Date
  104. Universal Time
  105. Local (GMT+00:00)
  106. Moon Phase
  107. Age of Moon
  108. Moon's Distance
  109. Moon Subtends
  110. Sun's Distance
  111. Sun Subtends
  112. Last New Moon
  113. This Lunation
  114. First Quarter
  115.     Full Moon
  116. Last Quarter
  117. Next New Moon
  118. Next Lunation
  119. Field:
  120.     TextField
  121. TextFieldCell
  122. Button
  123. Time Travel
  124. to Universal Time and Date
  125. Return to Now
  126. Ohlfs
  127. Pause
  128. StatForm
  129. Field20
  130. Field7
  131. Field1:
  132. Field3=
  133. Field4D
  134. TimeAndDateJ
  135.     Moon Info
  136. Panel
  137. Version Zero
  138. "NeXT version by Geoffrey S. Knauth
  139. 5Inspired by the PD moontool John Walker gave the Sun.
  140. Courier
  141. <Copying permitted under terms of GNU General Public License.z
  142. 5Copyright 1992, Lunar Software.  All Rights Reserved.z
  143. NXImage
  144. MoonAppIcon
  145. gtne|n
  146. VersionNumberwn
  147. ControllerInstance
  148. Controller
  149. ControllerStr
  150. NXStringTable
  151. October
  152. earthRadii
  153. Earth radii
  154.     September
  155. August
  156. April
  157. March
  158. waning
  159. February
  160. January
  161. visible
  162. December
  163. waxing
  164. November
  165. degrees
  166. MoonHelp
  167.     Moon Help
  168. ScrollView
  169. ClipView
  170. ciifffcfffs
  171. [7348c]{\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Ohlfs;\f2\ftech Symbol;\f3\fswiss Helvetica;}
  172. \margl40
  173. \margr40
  174. {\colortbl\red0\green0\blue0;}
  175. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs24 January 4, 1992 -- Cambridge, Mass.\
  176. \b\fs28 \
  177. About Moon\
  178. \b0 \
  179. This program is version zero of a simple port of the 
  180. \f1\fs24 moontool
  181. \f0\fs28  that John Walker of Autodesk developed for Sun workstations.\
  182. The NeXT version is very similar to the Sun version.  The features I've added are a TIFF file of the moon, time travel, and a pause button.  When the program is not paused or in time travel, updates happen every ten seconds.  I've taken out Mr. Walker's 
  183. \f1\fs24 -t
  184. \f0\fs28  switch.\
  185. The TIFF file looks very nice at full size, much better than when scrunched into the tiny MoonView beside all those statistics.  Double-click in the MoonView to check it out.  On a cloudy night, put the moon up on the whole screen, turn the brightness way down and the lights off, and you'll see again why it's so grand to have a computer painted black.\
  186. \b Input Format for Time Travel\
  187. \b0 \
  188. If you should wonder about the input format for the time travel text field, you have six choices.\
  189. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\f1\fs20\fc0     --Format--                --sscanf info for techies--\
  190.     hh:mm:ss dd mmmmm yyyy        (6) %d:%d:%d %d %s %d\
  191.     hh:mm dd mmmmm yyyy        (5) %d:%d %d %s %d\
  192.     hhmm dd mmmmm yyyy        (4) %d %d %s %d\
  193.     dd mmmmm yyyy                (3) %d %s %d\
  194.     mmmmm yyyy                (2) %s %d\
  195.     yyyy                        (1) %d\
  196.     hh, mm, ss, dd, and yy are numbers.  mmmmm is a string.\
  197.     What you don't enter becomes 0, 1, or January.\
  198. \f0\fs28 When you travel in time, I believe the stated accuracy of Mr. Walker's code will keep to within ten minutes, but he cautions, in the comments for 
  199. \f1\fs20 meanphase()
  200. \f0\fs28 , 
  201. Don't attempt to generalize it without understanding that the motion of the moon is far more complicated than this calculation reveals.
  202.   So if you go way back or forward in time, be sure to check the results, if it matters to you.  I cannot blame Mr. Walker for errors I may have introduced.\
  203. \b Known Bugs\
  204. \b0 \
  205. If it is winter in New England, and you time travel to June 1944, the local time displayed is Eastern Standard Time, not Eastern Daylight.  I hope to fix this for the more recent range of dates and local customs that Unix actually knows about.\
  206. Right around the new and full moon, the age of the moon and the words 
  207. waxing
  208.  and 
  209. waning
  210.  may be inconsistent.  Remember, the calculations are only good to 
  211. \f0 10 minutes.\
  212. \b Not a Bug\
  213. \b0 \
  214. To the left and right of the MoonView, you see East and West, and it may look backwards to you.  It isn't.  Imagine yourself lying on your back in a meadow, with your head pointing to the north pole, and your feet to the south.  As you face the sky, East is left and West is right, just as it was during the Cold War.\
  215. \b Thanks\
  216. \b0\fs24     In all thy ways acknowledge him, and he shall direct thy paths.\
  217. \i Proverbs 3:6
  218. \i0 \
  219. \fs28 \
  220. I'd like to thank the Usenet, in particular Tyler Gingrich, Jelske Kloppenburg, Andrew Loewenstern, Nathan Loofbourrow, Mark Nathan, Charles Perkins, Allyn Tennant, and John Walker.  Like everyone, I used code from NextDeveloper Examples.  And of course I have to thank NeXT for making such a wonderful computer.\
  221. \b Origins\
  222. \b0 \
  223. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600 The next section of this help text is the comment block found at the top of John Walker's Sun-based 
  224. \f1\fs24 moontool.c
  225. \f0\fs28  file.\
  226. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\f3\fs24\fc0 A Moon for the Sun\
  227. Release 2.0\
  228. Designed and implemented by John Walker in December 1987, revised and updated in February of 1988.\
  229. Make with:\
  230. cc -O moontool.c -o moontool -lm -lsuntool -lsunwindow -lpixrect\
  231. Adding appropriate floating point options to your hardware.  This program is a SunView tool which displays, as the icon for a closed window, the current phase of the Moon.  A subtitle in the icon gives the age of the Moon in days and hours.  If called with the "-t" switch, it rapidly increments forward through time to display the cycle of phases.\
  232. If you open the window, additional information is displayed regarding the Moon.  The information is generally accurate to within ten minutes.\
  233. The algorithms used in this program to calculate the positions Sun and Moon as seen from the Earth are given in the book "Practical Astronomy With Your Calculator" by Peter Duffett-Smith, Second Edition, Cambridge University Press, 1981.  Ignore the word "Calculator" in the title; this is an essential reference if you're interested in developing software which calculates planetary positions, orbits, eclipses, and the like.  If you're interested in pursuing such programming, you should also obtain:\
  234. "Astronomical Formulae for Calculators" by Jean Meeus, Third Edition, Willmann-Bell, 1985.  A must-have.\
  235. "Planetary Programs and Tables from -4000 to +2800" by Pierre Bretagnon and Jean-Louis Simon, Willmann-Bell, 1986.  If you want the utmost (outside of JPL) accuracy for the planets, it's here.\
  236. "Celestial BASIC" by Eric Burgess, Revised Edition, Sybex, 1985.  Very cookbook oriented, and many of the algorithms are hard to dig out of the turgid BASIC code, but you'll probably want it anyway.\
  237. Many of these references can be obtained from Willmann-Bell, P.O. Box 35025, Richmond, VA 23235, USA.  Phone: (804) 320-7016.  In addition to their own publications, they stock most of the standard references for mathematical and positional astronomy.\
  238. This program [Sun version] was written by:\
  239.    John Walker\
  240.    Autodesk, Inc.\
  241.    2320 Marinship Way\
  242.    Sausalito, CA  94965\
  243.    (415) 332-2344 Ext. 829\
  244.    Usenet: \{sun!well\}!acad!kelvin\
  245. This program is in the public domain: "Do what thou wilt shall be the whole of the law".  I'd appreciate receiving any bug fixes and/or enhancements, which I'll incorporate in future versions of the program.  Please leave the original attribution information intact so that credit and blame may be properly apportioned.\
  246. \f0\b\fs28 Yours Truly\
  247. \f3\b0\fs24 \
  248. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\fs28 The NeXT port was done as a 1992 New Year's resolution.\
  249. \fs24      Geoffrey S. Knauth        
  250. \i Ich arbeite bei Firma
  251. \i0 :\
  252.     Lunar Software            Marble Associates, Inc.\
  253.     115 Mt. Auburn St., Apt. 65        38 Edge Hill Road\
  254.     Cambridge, MA  02138        Waltham, MA  02154\
  255.     (617) 547-5247            (617) 891-5555\
  256. \f1\fs20 gsk@world.std.com
  257. \f0\fs24         
  258. \f1\fs20 gsk@marble.com\
  259. \f0\fs24 \
  260. \fs28 Version One is contemplated someday.\
  261. \b Legalities\
  262. \b0 \
  263. You may copy, modify and distribute this NeXT version as you wish, preferably according to the guidelines of the Free Software Foundation, as stated its General Public License, under which this program is given to you.  If you want to keep this kind of freedom, you may also inquire of the League for Programming Freedom by e-mail to 
  264. \f1\fs20 league@ai.mit.edu
  265. \f0\fs28 
  266. Technically speaking, the astronomical routines provided by Mr. Walker were put into the public domain by him.\
  267. There is no warrantee provided with this software.
  268. NXCursor
  269. NXibeam
  270. Scroller
  271. _doScroller:
  272. @@@ffs
  273. ScrollingText
  274. {i*@@@}
  275. [19{i*@@@}]
  276. hide:
  277. terminate:
  278. copy:
  279. paste:
  280. selectAll:
  281. delegate
  282. moonView
  283. statForm
  284. returnToNow:G
  285. timeTravel:@
  286.     nowButton
  287. pauseButton
  288. pause:O
  289. travelText
  290. stringTable
  291. orderFront:
  292.